
import request from '@/utils/request'
// 臻识相机获取FLV视频播放demo演示
export function zhenshiPlayer(url, data) {
  return request({
    url: url,  // 'http://b.gateares.com:30037/request.php',
    method: 'post',
    data: data
  })
}

// 海康WEB无插件开发包_20211014_20211019120439
export function haiKangLogin(data) {
  return request({
    url: 'http://120.76.218.198:30034/ISAPI/Security/sessionLogin',
    method: 'post',
    data: data
  })
}

// 获取直播地址
export function getLiveUrl(query) {
  return request({
    url: "/parking/dashboard/getLive",
    method: "get",
    params: query
  });
}

//获取直播token
export function getCameraToken(query) {
  return request({
    url: "/parking/dashboard/getCameraToken",
    method: "get",
    params: query
  });
}
